import Http from "@/http"

export function pageApi(params:any) {
    return Http.post('deviceParamsRule/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('deviceParamsRule/update/' + params.id, params) : Http.post('deviceParamsRule/add', params)
}

export function deleteApi(id) {
    return Http.delete('deviceParamsRule/delete/' + id)
}

export function optionsApi() {
    return Http.get('deviceParamsRule/options')
}
